home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
161_01
/
loops1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1985-08-28
|
260b
|
20 lines
#include "timer1.h"
#define LOOPDOWN(a, b) for (a = (b)+1; --a > 0; )
short i;
DO_STMT("up to 10")
for (i = 1; i <= 10; ++i)
;
OD
DO_STMT("down toward zero")
for (i = 10; i > 0; --i)
;
OD
DO_STMT("LOOPDOWN")
LOOPDOWN(i, 10);
OD
}